<table>
	<thead>
	<tr>
		<th>stage</th>
		<th>duration</th>
		<th>user cpu</th>
		<th>context switches</th>
		<th>block ops</th>
		<th>messages</th>
		<th>page faults</th>
	</tr>
	</thead>
	<tbody>
	<% query.profile.each do |profile| %>
	<tr>
		<td title="<%= h profile.Status %>"><%= h profile.Status %></td>
		<td title="<%= h profile.Duration %> seconds"><%= h("%.4f" % profile.Duration.to_f) %>s</td>
		<td title="USER: <%= profile.CPU_user.to_f %>s  SYSTEM: <%= profile.CPU_system.to_f %>s"><%= h("%.4f" % profile.CPU_user.to_f) %>s</td>
		<td title="Voluntary: <%= h profile.Context_voluntary %>  Involuntary: <%= h profile.Context_involuntary %>"><%= h(profile.Context_voluntary.to_i + profile.Context_involuntary.to_i) %></td>
		<td title="Ops in: <%= h profile.Block_ops_in %>  Ops out: <%= h profile.Block_ops_out %>"><%= h(profile.Block_ops_in.to_i + profile.Block_ops_out.to_i) %></td>
		<td title="Sent: <%= h profile.Messages_sent %>  Received: <%= h profile.Messages_received %>"><%= h(profile.Messages_sent.to_i + profile.Messages_received.to_i) %></td>
    <td title="Major: <%= h profile.Page_faults_major %>  Minor: <%= h profile.Page_faults_minor %>"><%= h profile.Page_faults_major %></td>
	<tr>
	<% end %>
	</tbody>
</table>